package erathia.dwr;

import erathia.dao.MemberDao;
import erathia.model.Member;

public class MainTemplateDwr {
	private MemberDao daoM;

	public void setDaoM(MemberDao daoM) {
		this.daoM = daoM;
	}
	
	public Member tryLogin(String m_id, String m_pwd){
		Member tryOne = new Member();
		tryOne.setM_id(m_id);
		tryOne.setM_pwd(m_pwd);
		System.out.println(daoM.getMemberByM_idM_pwd(tryOne));
		return daoM.getMemberByM_idM_pwd(tryOne);
	}
}
